home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5395 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.9 KB

  1. Path: news.mountain.net!usenet
  2. From: matt.jenkins@westvirginia.com (Light Chaser)
  3. Newsgroups: comp.lang.c,alt.bbs.proboard
  4. Subject: Needed:  Centering Procedure that ignores escape sequences
  5. Date: Tue, 13 Feb 1996 01:47:12 GMT
  6. Organization: TDB
  7. Message-ID: <4fog4q$24v@news.mountain.net>
  8. NNTP-Posting-Host: 198.77.18.114
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. I spent a whole day trying to come up with a simple and small
  12. centering routine.  I came up with one, but then ran into the problem
  13. that I have to ignore escape sequences.  My BBS software, ProBoard,
  14. supports only certain functions (which are listed at the end of this
  15. message).  I want something where I can do:
  16. center("\n\2This \3text \5contains \1escape \6sequences\t\n");
  17. the \x are the colors, then \t is wait for enter, and the \n is of
  18. course the return.  Does anyone have anything I can go on?  I have
  19. found many ways to do it, but they do not ignore the escape sequences.
  20. Any help would be appriciated.  Thanks!  Also, an E-Mail reponse would
  21. be better than a newsgroup response.  My newserver loses most of my
  22. newsgroup messages :(  Thanks again!
  23.  
  24.          Functions supported:
  25.  
  26.               fopen , freopen , fseek , ftell , fgets , fgetc , fflush
  27.               fclose , fputs , getc , getchar , gets , fputc , putc ,
  28.               putchar , puts , fread , fwrite , printf , fprintf ,
  29.               vfprintf , vprintf , sprintf , vsprintf , setbuf ,
  30.               setvbuf , remove , rename , rewind , clearerr , feof ,
  31.               isalpha , iscntrl , isdigit , isgraph , islower ,
  32.               isprint , ispunct , isspace , isupper , isxdigit ,
  33.               toupper , tolower , int86x , intdos , intdosx ,
  34.               dos_findfirst , dos_findnext , write , open , creat ,
  35.               close , unlink , chsize , dup , dup2 , lseek , access ,
  36.               filesize , filelength , isatty , atoi , atol , strtol ,
  37.               rand , srand , calloc , free , malloc , realloc , putenv
  38.               getenv , abs , labs , memcpy , memmove , strcpy ,
  39. strncpy ,
  40.               strcat , strncat , memcmp , strcmp , strncmp , memchr ,
  41.               strchr , strcspn , strpbrk , strrchr , strspn , strstr ,
  42.               strtok , memset , strlen , memicmp , stpcpy , strcmpl ,
  43.               strnicmp , strdup , strlwr , strupr , strnset , strrev ,
  44.               strset , swab , strncmpl , strnicmp , clock , time ,
  45. mktime ,
  46.               asctime , ctime , localtime , gmtime , strftime , sleep
  47. ,
  48.               usleep , msleep , difftime, mkdir(), chdir(), rmdir()
  49.  
  50. ---End---
  51.  
  52. Matt
  53. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  54.                         The Doorway BBS
  55.                          1-304-782-4691
  56.                           Matt Jenkins
  57.                     Running ProBoard v2.12
  58.               http://www.westvirginia.com/mjenkins
  59.                  matt.jenkins@westvirginia.com
  60.  
  61. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  62.  
  63.